CREATE TABLE [dbo].[TDTIPO_COND]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_COND_PAGO] [dbo].[TD_VC_003] NOT NULL,
[CO_COPA_ASOC] [dbo].[TD_VC_003] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDTIPO_CO__CO_US__3D5E1FD2] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TDTIPO_CO__FE_US__3E52440B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDTIPO_CO__CO_US__3F466844] DEFAULT (substring(suser_sname(),(1),(8))),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TDTIPO_CO__FE_US__403A8C7D] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDTIPO_COND] ADD CONSTRAINT [PK__TDTIPO_C__898CA35E6C390A4C] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_COND_PAGO], [CO_COPA_ASOC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDTIPO_COND] ADD CONSTRAINT [FK__TDTIPO_COND__2818EA29] FOREIGN KEY ([CO_COND_PAGO], [CO_EMPR]) REFERENCES [dbo].[TTTIPO_COND] ([CO_COND_PAGO], [CO_EMPR])
GO
GRANT SELECT ON  [dbo].[TDTIPO_COND] TO [public]
GRANT INSERT ON  [dbo].[TDTIPO_COND] TO [public]
GRANT DELETE ON  [dbo].[TDTIPO_COND] TO [public]
GRANT UPDATE ON  [dbo].[TDTIPO_COND] TO [public]
GO
